import java.util.*;
class student{
	int number[]=new int[3];
	String name[]=new String[3];
	String sex[]=new String[3];
	int score[]=new int[3];
	int flag=0;
	int tot;
	double per;
	void setnumber(int i)
	{
		this.number[flag]=i;
	}
	void setname(String i)
	{
		this.name[flag]=i;
	}
	void setsex(String i)
	{
		this.sex[flag]=i;
	}
	void setscore(int i)
	{
		this.score[flag]=i;
		flag++;
	}
	void total()
	{
		this.tot=this.score[0]+this.score[1]+this.score[2];
		System.out.println("总分是："+this.tot);
	}
	void percent()
	{
		this.per=this.tot/3.0;
		System.out.println("平均分是："+this.per);
	}
}
public class learn{
	public static void main(String[] args)
	{
		String m,n;
		int i,j,f;
		student volu;
		volu=new student();
		Scanner buf;
		buf=new Scanner(System.in);
		for(f=1;f<=3;f++)
		{
			System.out.println("请输入第"+f+"个学生的学号");
			i=buf.nextInt();
			volu.setnumber(i);
			System.out.println("请输入第"+f+"个学生的姓名");
			m=buf.next();
			m+=buf.nextLine();
			volu.setname(m);
			System.out.println("请输入第"+f+"个学生的性别");
			n=buf.nextLine();
			volu.setsex(n);
			System.out.println("请输入第"+f+"个学生的计算机成绩");
			j=buf.nextInt();
			volu.setscore(j);
		}
		volu.total();
		volu.percent();
	}
}